class AjoutChampMachines < ActiveRecord::Migration
  def self.up
    add_column :machines, :ram_usage, :integer
    add_column :machines, :cpu_usage, :integer
    add_column :machines, :ram_total, :integer
    add_column :machines, :os, :string    
    add_column :machines, :up_at, :timestamp
  end

  def self.down
    remove_column :machines, :ram_usage
    remove_column :machines, :cpu_usage
    remove_column :machines, :ram_total
    remove_column :machines, :os 
    remove_column :machines, :up_at
  end
end